home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / keyb / cedwars2.zip / DAVECED.NOT < prev    next >
Text File  |  1988-07-25  |  10KB  |  232 lines

  1.                                                         07-25-88
  2.  
  3.  I have worked out some fairly nifty (if I do say so myself) CED macros which 
  4. I think a lot of people might find useful. Since sitting down and poring over 
  5. a file isn't my idea of fun either, I've made up this annotated list. The file 
  6. I actually use (this week) is in this arc as DAVECED.CFG
  7.  
  8.                                                           Dave Williams
  9. ******************************************************************************
  10.  
  11. rem **Globals**                 ;first, REM the hell out of everything.
  12.                                 ;REMs don't take up any space in memory
  13.                                 ;and are handy for remembering what's going on
  14.  
  15. syn @ E:\ram\xeq                ;I used XEQ.COM, which allows you to store a
  16.                                 ;bunch of little .COM files in one large one
  17.                                 ;to save disk space (remember, each little
  18.                                 ;30 byte file takes up 2k to 8k of disk!)
  19.  
  20. syn ed dp12 C:\wp\pcw^ed.exe %1 ;DP12 is a path enhancer, allows PC-Write
  21.                                 ;to find its help file in C:\wp\pcw. PC-Write
  22.                                 ;(ed.exe) itself is in the path in the RAMdisk.
  23.                                 ;%1 is a replaceable parameter for the filename
  24.                                 ;just like DOS batch language
  25.  
  26. rem **PATHING**
  27. syn normpath path=E:\;C:\bat;C:\ut;C:\dos  ;restores my default PATH if I
  28.                                            ;change it or some dweeb program
  29.                                            ;rapes it
  30.                                              
  31.  
  32. rem **PROMPT**
  33. syn myprompt prompt $p$_$q$q$g       ;resets my usual prompt, which puts the
  34.                                      ;path on top and commands on the bottom,
  35.                                      ;since I hate looking 6 inches over for
  36.                                      ;what I'm typing in if 9 dirs down....
  37.  
  38. syn prompt1 prompt $a╔═ $p$_$a╚══$g  ;betcha didn't know you could put high
  39.                                      ;ASCII chars intothje prompt, didya?
  40. syn promptr prompt $e[7m$p$_$q$q$g
  41.  
  42. syn prompt2 prompt $e[1m$e[s$e[1;1H$e[37;40m$e[K $d  $t$h$h$h  $v $e[uCommand:$e[0m
  43. syn prompt3 prompt $e[1m$e[s$e[25;1H$e[37;40m$e[K $a Current Logged Volume and Directory: $p$g$h   $e[u$q$q$g$e[0m
  44.  
  45.  
  46.  
  47. rem **DIRECTORY STUFF**
  48. syn a A:                        ;lets me jump to A: with a<enter>, 2 keystrokes
  49. rem syn b B:
  50. syn b D:^cd\book                ;don't have a B: drive now, so jump to most
  51.                                 ;used subdirectory
  52. syn c C:
  53. syn 4 D:                        ;d is better used as dir, so it's drive 4
  54. syn e E:                       
  55. syn cpa copy A:*.*              ;saves 14 keystrokes!
  56. syn d dir/p                     ;good ol' DIR, and /P to break it up
  57. syn da dir/p A:
  58. syn sd ^@ sdir                  ;^@ - @ is our macro for "XEQ". CED wants a
  59.                                 ;leading command before it will let a macro
  60.                                 ;be the first command of another macro, so
  61.                                 ;the chain character "^" does it. Saves 3
  62.                                 ;bytes of RAM per XEQ instruction
  63. syn sda ^@ sdir A:
  64. syn la label A:
  65. rem syn dx ^@ direx
  66. syn de dir/p E:^pause^xeq/l > E:xeqlist^@ list E:xeqlist
  67.                                 ;a fancy macro. Gives a directory of stuff in
  68.                                 ;the RAMdisk (utilities, usually), then XEQ/L
  69.                                 ;to see what's in XEQ (also in RAMdisk) piped
  70.                                 ;to a file called xeqlist, then LIST.COM lets
  71.                                 ;you see what's in xeqlist
  72. syn c2pc C:\ut\copy^copyiipc
  73. rem syn ddwg dir \cad\*.pd1
  74. rem syn dwks dir/w \calc\wks\*.wk?
  75. syn up cd..                     ;very handy for going up in subdirectories
  76. syn next ^@ next
  77. syn down ^@ down
  78. syn dn ^@ dirnotes
  79. syn ck chkdsk %1                ;you need the %1 to take the optional params
  80. syn more ^@ more
  81. syn delbak del *.bak            ;zap TPascal .BAK files
  82.  
  83.  
  84. rem **XEQ**
  85. syn dsort ^@ dirsort N^d        ;uses Norton's DIRSORT from XEQ, then brings
  86.                                 ;up the directory
  87. syn see ^@ list                 ;brings LIST.COM from XEQ
  88. syn fdate ^@ fdate
  89. syn cal ^@ cal
  90. rem syn qt ^@ qt
  91. rem syn sweep ^@ sweep
  92.  
  93. syn rdir ^@ rdir
  94. syn red ^@ red
  95. syn where ^@ where
  96. syn sz ^@ size
  97. syn fr ^@ free
  98.  
  99. syn vt ^@ vtree
  100. syn vtg ^@ vtree > E:vtree.pic^@ list E:vtree.pic ;another fancy macro, feeds
  101.                                                   ;VTREE into a file, then 
  102.                                                   ;look at it with list
  103. syn vtl ^@ list E:vtree.pic   ;lets you look again without waiting for VTREE
  104.  
  105.  
  106. rem **  GOING SOMEWHERE?  **
  107. syn !1 pushdir^rem Current Directory Saved       ;good old pushdir and popdir
  108. syn !2 ^@ popdir^rem Returned to Saved Directory ;and their macros
  109.  
  110. rem syn !bat cd\bat             ;I use ! to indicate these are directory-
  111.                                 ;jumping macros. Saves a lot of typing.
  112. syn !dn D:^cd\dnld
  113. syn !up cd\comm\upld
  114. syn !dmp cd\comm\dmp
  115.  
  116. syn !boot cd\dos\boot
  117. syn !ram cd\dos\boot\ram
  118.  
  119. syn !df cd\wp\df
  120. rem syn !wr cd\wp\wr
  121. syn !ltr cd\wp\ltr
  122.  
  123. syn !asm cd\pro\asm
  124. syn !tp cd\pro\tp
  125.  
  126. syn !lib cd\work\lib
  127. rem syn !diag cd\ut\diag
  128.  
  129. syn !trm cd\pro\tp\trm
  130. syn !pas cd\pro\tp\pas
  131. syn !asm cd\pro\asm\asrc
  132.  
  133. syn !joe cd\pro\tp\joe
  134. rem syn !cal cd\pro\tp\calc
  135.  
  136.  
  137.  
  138. rem **CALLING EXECUTABLE FILES**
  139. syn basic \pro\bas\basica %1
  140.  
  141. syn #jiv C:\wp\jive < %1 > %2            ;these are for operating filters,
  142. syn #val C:\wp\valspeak < %1 > %2        ;take care of all redirection, etc.
  143. syn aform C:\wp\aform < %1 > %2 -l -b -w
  144.  
  145. syn qm C:\comm\qmodem/L %1^cls
  146. syn #mac C:\fun\macpaint -ok -invert
  147.  
  148. ;I'm especially proud of these macros for running Turbo Pascal 3x. They take
  149. ;you through all the drivel menus and feed your filename in at the right
  150. ;place. PC Mag's KEYFAKE was the only one that would work correctly for
  151. ;the 64k segment macro
  152.  
  153. syn tpa dp12 C:\pro\tp^keyfake "YOCQC%1" 13^C:\pro\tp\turbo
  154.         rem default: takes all availible RAM
  155. syn tp dp12 C:\pro\tp^keyfake "YOCA 1000" 13 "QC%1" 13^C:\pro\tp\turbo
  156.         rem 64k segment
  157.  
  158. syn edarc ^ed C:\wp\df\archive
  159. syn edlib ^ed C:\work\lib\softcat
  160. syn edli2 ^ed C:\work\lib\softcat2
  161. syn edli3 ^ed C:\work\lib\softcat3
  162. syn format33 C:\dos\33\format A: %1 %2 %3
  163. syn x2 \pro\exe2bin %1 %2
  164.  
  165.  
  166.  
  167. rem **EDITING THE SYSTEM FILES**
  168. syn edced ^ed \dos\boot\ced.cfg   ;this macro brings up PC-Write to edit the
  169.                                   ;CED.CFG file. 
  170. syn edcfg attr -H-R \config.sys^ed \config.sys^attr +H+R \config.sys
  171.                                   ;this one uses PCMag's ATTR.COM to unhide
  172.                                   ;CONFIG.SYS, bring up the editor, and then
  173.                                   ;hide it when I'm done
  174. syn edboot ^ed \dos\boot\boot.bat
  175.                                   ;my AUTOEXEC merely loads BOOT into the
  176.                                   ;RAMdisk and transfers control to it. BOOT
  177.                                   ;is the actual autoexec. AUTOEXEC is hidden
  178.                                   ;and read-only, to foil those moron 
  179.                                   ;INSTALL.COM programs that zap your stuff.
  180.  
  181. rem **ARCHIVING STUFF**
  182. syn arc pkarc ax                ;prompts for comment for archive
  183. syn arcx pkxarc
  184. syn look pkarc vm               ;toggles MORE?
  185.  
  186.  
  187. rem **PCALLS**
  188. pcall look
  189. pcall see
  190. pcall msc                       ;these are all PCALLed. If I edit a file, each
  191. pcall asm                       ;time I type ed<enter> CED will automatically
  192. pcall tpa                       ;bring that file back up for editing. Same for
  193. pcall tp                        ;the assembler or compilers. Speeds programming
  194. pcall ed                        ;enormously
  195.  
  196.  
  197. rem **CED STATUS STUFF**
  198. chainch ^                       ;I use the default chain character
  199. ignorech ~